<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:zj="http://www.zju.edu.cn" exclude-result-prefixes="zj">
  <xsl:import href="../Tk2Base/HttpPost.xslt"/>
  <xsl:import href="../Tk2Base/GlobalVariable.xslt"/>
  <xsl:import href="PublicEditTemplate_Trans.xslt"/>
  <xsl:import href="NormalFrame.xslt"/>
  <xsl:output method="html" indent="no"/>
  <xsl:template match="/">
    <xsl:choose>
      <xsl:when test="$IsPost">
        <xsl:call-template name="zj:HtmlContent"/>
      </xsl:when>
      <xsl:otherwise>
        <html>
          <head>
            <title/>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
            <link rel="stylesheet" type="text/css" href="../css/style.css"/>
            <link rel="stylesheet" type="text/css" href="../themes/default/easyui.css"/>
            <link rel="stylesheet" type="text/css" href="../themes/icon.css"/>
            <script language="JavaScript" src="../js/jquery-1.7.1.min.js"></script>
            <script language="JavaScript" src="../js/jquery.easyui.min.js"></script>
            <script language="JavaScript" src="../js/common.js"></script>
            <xsl:call-template name="zj:Script"/>
          </head>
          <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" OnMouseDown="gfPop.hiddencld();gfPop4.fHideCal();">
            <div id="floatDiv" style="position: absolute; visibility: hidden; left:0px; top:0px; width:200px; height:200px; z-index:10; overflow: auto; border:solid 1px #003366; background-color: #FFFFEE" class="scrollBar"/>
            <iframe width="200" height="100" name="uploadPop" id="uploadPop" src="../Upload/UploadPage.aspx" scrolling="no" frameborder="0" style="border:solid 1px #333333; background-color: #FFFFF7; visibility:visible; z-index:999; position:absolute; left:-500px; top:0px;"/>
            <iframe width="168" height="190" name="gfPop" id="gfPop" src="../utility/calendar/ipopeng.htm" scrolling="no" frameborder="0" style="border:2px ridge; visibility:visible; z-index:999; position:absolute; left:-600px; top:0px;"/>
            <iframe width="188" height="166" name="gToday:datetime:agenda.js:gfPop4:plugins.js" id="gToday:datetime:agenda.js:gfPop4:plugins.js" src="../utility/new_calendar/ipopeng.htm" scrolling="no" frameborder="0" style="visibility:visible; z-index:999; position:absolute; left:-500px; top:0px;"/>
            <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td valign="top" id="contentTD">
                  <xsl:call-template name="zj:HtmlContent"/>
                </td>
              </tr>
            </table>
          </body>
        </html>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>
  <xsl:template name="zj:HtmlContent">
    <table width="100%" border="0" cellspacing="0" cellpadding="6" onclick="DocOnClick()">
      <tr>
        <td class="title" style="padding: 2px">
          <table border="0" width="100%" cellspacing="0" cellpadding="0">
            <tr>
              <td class="title" style="padding: 0px">
                <xsl:call-template name="zj:PageTitle"/>
              </td>
              <td align="right">
                <img src="../images2/maintitle.jpg" width="220" height="23"/>
              </td>
            </tr>
            <tr>
              <td background="../images2/fix.gif" colspan="2" height="1"/>
            </tr>
          </table>
          <br/>
        </td>
      </tr>
      <tr>
        <td>
          <form name="frmData">
            <xsl:call-template name="zj:FormAttr"/>
            <xsl:call-template name="zj:Content"/>
            <input type="hidden" name="_GUID" id="_GUID" value="{$zj:GUID}"/>
            <table width="100%" border="0" cellspacing="0" cellpadding="2">
              <tr>
                <td height="30">
                  <xsl:value-of select="$zj:RequireField"/>
                </td>
                <td align="right">
                  <xsl:call-template name="zj:Button"/>
                </td>
              </tr>
            </table>
          </form>
        </td>
      </tr>
    </table>
    <xsl:call-template name="zj:PostTemplate"/>
  </xsl:template>
  <xsl:template name="zj:PageTitle">
    <xsl:call-template name="zj:LittleTitle">
      <xsl:with-param name="Name" select="concat($zj:InsertTitle, $zj:Title)"/>
    </xsl:call-template>
  </xsl:template>
  <xsl:template name="zj:Button">
    <xsl:call-template name="zj:SaveButton"/>
    <xsl:call-template name="zj:CancelButton"/>
  </xsl:template>
  <xsl:template name="zj:PostTemplate">
    <xsl:call-template name="zj:DefaultPost"/>
  </xsl:template>
  <xsl:template name="zj:Script"/>
</xsl:stylesheet>
